#ifndef LOGGERACTIVATORS_H_JM_20130121
#define LOGGERACTIVATORS_H_JM_20130121

#include "LoggerRegister.h"

namespace jmlib {

	struct LoggerActivatorByName {
		LoggerActivatorByName(const std::string& loggerName, const std::string& appenderName) {
			LoggerRegister::getInstance()->addLoggerActivator(loggerName, appenderName);
		}
	};

	struct LoggerActivatorByNamePrefix {
		LoggerActivatorByNamePrefix(const std::string& loggerNamePrefix, const std::string& appenderName) {
			LoggerRegister::getInstance()->addLoggerActivator(loggerNamePrefix, appenderName, LoggerActivatorFilter::PREFIX_MATCH);
		}
	};

} // namespace jmlib	

#endif
